﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using System.Diagnostics;
using NLite.Interceptor.Metadata;

namespace NLite.Interceptor.Fluent
{
    /// <summary>
    /// 
    /// </summary>
    public interface IAspectExpression
    {
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        IPointCutExpression PointCut();
        /// <summary>
        /// 
        /// </summary>
        /// <param name="flags"></param>
        /// <returns></returns>
        IPointCutExpression PointCut(CutPointFlags flags);
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        IAspectInfo ToAspect();
    }
    /// <summary>
    /// 
    /// </summary>
    public interface INamespaceExpression : IAspectExpression
    {
        /// <summary>
        /// 
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <returns></returns>
        INamespaceExpression Exclude<T>();
    }

    /// <summary>
    /// 
    /// </summary>
    public interface IPointCutExpression : IAdviceExpression
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="methodName"></param>
        /// <returns></returns>
        IMethodSignatureExpression Method(string methodName);
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        IMethodSignatureExpression Method();
    }

    /// <summary>
    /// 
    /// </summary>
    public interface IMethodSignatureExpression : IAdviceExpression
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="deep"></param>
        /// <returns></returns>
        IMethodSignatureExpression Deep(int deep);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="argument"></param>
        /// <returns></returns>
        IMethodSignatureExpression Argument(string argument);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="access"></param>
        /// <returns></returns>
        IMethodSignatureExpression Access(AccessFlags access);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="methodType"></param>
        /// <returns></returns>
        IMethodSignatureExpression ReturnType(string methodType);
    }

   
    /// <summary>
    /// 
    /// </summary>
    public interface IAdviceExpression
    {
        /// <summary>
        /// 
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <returns></returns>
        IAdviceExpression Advice<T>();
    }

}
